package com.tcm.service;

import com.tcm.entity.TestPaper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tcm.entity.dto.TestPaperDto;
import com.tcm.entity.dto.param.TestPaperPageParam;
import com.tcm.entity.resp.PageR;
import com.tcm.entity.vo.TeacherListResult;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author Guqier
* @description 针对表【ts_test_paper(试卷表)】的数据库操作Service
* @createDate 2023-08-02 11:32:29
*/
public interface TestPaperService extends IService<TestPaper> {

    List<TeacherListResult> getTeacherListByTestPaper(Long currUserId);

    @Transactional
    boolean addTestPaper(TestPaperDto dto, Long currUserId);

    @Transactional
    boolean modifyTestPaper(TestPaperDto dto, Long currUserId);

    @Transactional
    boolean removeTestPaper(Long id, Long currUserId);

    PageR<TestPaperDto> getTestPaperByRole(TestPaperPageParam param, Long currUserId);

    TestPaperDto getTestPaperById(Long id);
}
